﻿@model IEnumerable<Hrm.Core.TeamMenber>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="page-header" class="clearfix">
    <div class="page-header">
        <h2>团队管理</h2>
        <span class="txt">可以增删查改工作室的团队</span>
    </div>
</div>

<div class="panel panel-default toggle panelMove panelClose panelRefresh">
    <!-- Start .panel -->
    <div class="panel-heading">
        <h4 class="panel-title">查询条件</h4>
    </div>
    <div class="panel-body pt0 pb0">
        <form class="form-horizontal group-border">
            @Html.AntiForgeryToken()
            <div class="form-group col-lg-6 col-md-6">
                <label class="col-lg-3 col-md-3 control-label" for="">类型</label>
                <div class="col-lg-9 col-md-9">
                    <input id="txtType" type="text" class="form-control" name="default">
                </div>
            </div>
        </form>
    </div>
    <div class="panel-footer">
        <a class="btn btn-primary button-floatRight" href="@Url.Action("Create")">添加</a>
        <button id="btnReset" type="reset" class="btn btn-danger button-floatRight">重置</button>
        <button id="btnQuery" type="submit" class="btn btn-primary button-floatRight">查询</button>
    </div>
</div>

<div class="panel panel-default toggle panelMove panelClose panelRefresh">
    <div class="panel-heading">
        <h4 class="panel-title">查询结果</h4>
    </div>
    <div class="panel-body">
        <table id="teamMembersTable" class="table table-striped table-hover dt-responsive nowrap" cellspacing="0" width="100%">
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @Html.DisplayNameFor(model => model.ChineseName)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.ChineseName)
                    </td>
                    <td>
                        @Html.DisplayNameFor(model => model.EnglishName)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.EnglishName)
                    </td>
                    <td>
                        @Html.DisplayNameFor(model => model.Type)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Type)
                    </td>
                    <td rowspan="2">
                        <img src="@item.UserImg" height="60" />
                    </td>
                    <td rowspan="2" style="vertical-align: middle;background-color: white;">
                        @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
                        @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
                        @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
                    </td>
                </tr>
                <tr>
                    <td>
                        @Html.DisplayNameFor(model => model.Company)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Company)
                    </td>
                    <td>
                        @Html.DisplayNameFor(model => model.Position)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Position)
                    </td>
                    <td>
                        @Html.DisplayNameFor(model => model.OrderNum)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.OrderNum)
                    </td>
                </tr>
            }

        </table>

    </div>
</div>
